<script>
	let foo;
	let inputType;
</script>

<input bind:this={foo} type={inputType}>